package com.intelligent.health.base.service.email;

import com.intelligent.health.base.excption.EmailSendException;
import entity.EmailInfo;

import javax.mail.MessagingException;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: torlesse-liang
 * @Date: 2022/04/05/11:12
 * @Description: 邮件发送服务接口
 */
public interface SendEmailService {

    /**
     * 发送邮件统一接口
     *
     * @param emailInfo
     */
    void emailSend(String action, EmailInfo emailInfo) throws EmailSendException, MessagingException;
}
